import QtQuick 2.12
import QtQuick.Controls 2.5


Rectangle {
    id: rec
    property alias text: txt.text
    color: "white"
    border.width: 1
    border.color: "gray"
    ScrollView{
        anchors.centerIn: parent
        width: parent.width-30
        height: parent.height
        TextArea {
            id: txt
            //anchors.fill: parent
//            anchors.leftMargin: 0
//            anchors.rightMargin: 0
//            anchors.topMargin: 0
//            anchors.bottomMargin: 0

            text: ""
            selectByMouse: true
            enabled: true
            font.pointSize: 12
            background: Rectangle{
                anchors.top: parent.top
                height: 60
                width: rec.width

                color: "transparent"
            }
        }
    }
}
